<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<f:view contentType="text/html">

	<h:head>
		<title>QUIZ</title>
		<meta content='text/html; charset=UTF-8' http-equiv="Content-Type" />

		<link type="text/css" rel="stylesheet"
			href="#{request.contextPath}/css/default.css" />
		<link rel="shortcut icon"
			href="#{request.contextPath}/images/favicon.ico" />
		<ui:insert name="head"></ui:insert>
	</h:head>

	<h:body>

		<h:form id="headerform">
			<p:growl id="growl" showDetail="true" />

		</h:form>



		<h:form id="idle">
			<p:idleMonitor
				timeout="#{session.maxInactiveInterval * 1000 - 1000 }"
				onidle="idleDialog.show()" />

			<p:dialog header="ZAMAN AŞIMI" resizable="false" appendToBody="true"
				closable="false" draggable="false" widgetVar="idleDialog"
				modal="true" width="400">
				<h:outputText
					value="Kullanım Zaman Aşımına Uğradı. Devam etmek için " />
				<a href="#{request.contextPath}/login.xhtml" style="color: red">tıklayınız...</a>
			</p:dialog>
		</h:form>

		<p:layout id="layout" fullPage="true">


			<p:layoutUnit id="center" position="center">
				<h:form id="topmenuform" style="float:right">
					<h:outputLabel value="KULLANICI ADI:" style="font-weight:bold" />
					<p:spacer width="10"></p:spacer>
					<h:outputLabel value="#{loggedinUserBean.authUser.name}" />
					<p:spacer width="25"></p:spacer>
					<p:menuButton value="İŞLEMLER">

						<p:menuitem value="Ana Sayfa" url="../ordinary/main.xhtml" />
						<p:menuitem value="WEATHER" url="../ordinary/weather.xhtml" />
						<p:menuitem value="FOOTBALL" url="../ordinary/football.xhtml" />

						<p:menuitem value="Çıkış" url="../../j_spring_security_logout"
							icon="ui-icon-power" />
					</p:menuButton>
					<p:spacer width="10"></p:spacer>

				</h:form>

				<div id="content" class="ui-widget">
					<div class="post">
						<ui:insert name="content">...</ui:insert>
					</div>
				</div>
			</p:layoutUnit>

		</p:layout>
	</h:body>
</f:view>
</html>
